#include "main.h"

#define RELOAD_VALUE_H  (65536-1760)/256  //3250	82.5us
#define RELOAD_VALUE_L  (65536-1760)%256

/************************************************************************************************************
*    Main function 
************************************************************************************************************/
void Tim3_Init(void)
{     
    RH3 = RELOAD_VALUE_H;                       //initial counter values 
    RL3 = RELOAD_VALUE_L;    
    
    set_ET3;                                    //enable Timer3 interrupt
    set_EA;                                     //enable interrupts
    set_TR3;                                    //Timer3 run

}